package com.shanjupay.merchant.convert;

import com.shanjupay.merchant.api.dto.MerchantDTO;
import com.shanjupay.merchant.entity.Merchant;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: xinglongge
 * @Date: 2020/4/12 21 11
 * @Description: 对象属性的映射
 */
@Mapper
public interface MerchantConvert {


    MerchantConvert INSTANCE = Mappers.getMapper(MerchantConvert.class);

    List<MerchantDTO> entitys2dtos(List<Merchant> merchants);

    MerchantDTO entity2dto(Merchant merchant);

    Merchant dto2entity(MerchantDTO merchant);


}
